package com.shujia.akka.actors

import akka.actor.Actor

object GuoJinActor extends App {

}

class GuoJinActor extends Actor {
  override def receive: Receive = {
    case "蛤蟆功" => {
      println("郭靖：我闪... 好你个奸诈老贼..")
      println("郭靖：看我降龙十八掌..")
      sender() ! "降龙十八掌"
    }

    case "蛇" => {
      println("郭靖：黄蓉救我..")
    }
  }
}